import org.apache.log4j.Logger;

/**
 * 作用:
 * 作者:gjx
 * 版本:V1.0
 * 创建时间: 2018/7/29 9:30
 */
public class Demo1 {
   private static Logger logger = Logger.getLogger(Demo1.class);

    public static void main(String[] args) {
        //下面的消息将被输出
        logger.info("this is an info");
        logger.warn("this is a warn");
        logger.error("this is an error");

    }
}
